package com.cnhis.drgs;


import com.cnhis.drgs.core.util.GeneratorUtil;
import org.junit.jupiter.api.Test;

import java.util.HashMap;
import java.util.Map;

public class AutoRemove {

    @Test
    public void autoRemove() {

        //表名(多个之间逗号隔开)
        Map<String, String> map = new HashMap<>();
        map.put("sensor","t_sensor,t_sensor_data");
        map.put("device","t_device");
        map.put("dictionary","t_dictionary,t_dictionary_detail");
        map.put("company","t_company");
        map.put("gateway","t_gateway");
        map.put("province","t_province,t_city,t_district");
        map.put("resource","t_floor,t_room");
        map.put("sys","t_sys_user,t_sys_role,t_sys_menu,t_sys_user_role,t_sys_role_menu");

        GeneratorUtil.autoRemove(map);

    }

}
